﻿
@{
    Layout = null;
    var result = ViewBag.Courses as List<School显示.Models.Course>;
}

<!DOCTYPE html>

 
<table class="table table-bordered table-striped">
    <thead>
        <tr>
            <td>课程编号</td>
            <td>标题</td>
            <td>学分</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in result)
        {
            <tr>
                <td>@item.CourseID</td>
                <td>@item.Title</td>
                <td>@item.Credits</td>
            </tr>
        }
    </tbody>
</table>

